package com.xintai.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xintai.common.annotation.Excels;
import com.xintai.common.core.domain.entity.SysDictData;
import com.xintai.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xintai.common.annotation.Excel;
import com.xintai.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 生产线对象 pub_workshop
 * 
 * @author xintai
 * @date 2020-12-22
 */
public class PubWorkshop extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 生产线ID */
    private Long workshopId;

    /** 生产线名称 */
    @Excel(name = "生产线名称")
    private String workshopName;

    /** 生产线属性*/
    private Integer workshopProperty;

    /** 生产线属性类 **/
    @Excel(name = "生产线属性", targetAttr = "dictLabel", type = Excel.Type.EXPORT)
    private SysDictData workshopPropertyBean;

    /** 公司名称 */
    private Integer dictCode;

    /** 公司名称类*/
    @Excel(name = "公司名称", targetAttr = "dictLabel", type = Excel.Type.EXPORT)
    private SysDictData dictCodeBean;

    /** 产地： 鑫泰、华泰、盈鑫  */
    @Excel(name = "产地： 鑫泰、华泰、盈鑫 ")
    private String workshopChandi;

    /** 排序 */
    private Integer workshopOrder;

    /** 是否删除， 字典数据不删除，0  正常可用，1 删除禁用， 但可关联查询 */
    private Integer workshopIsdel;

    /** 维护人ID */
    private Integer userId;

    /** 维护人实体类 */
    @Excel(name = "维护人", targetAttr = "nickName", type = Excel.Type.EXPORT)
    private SysUser sysUser;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date workshopTime;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getWorkshopId() {
        return workshopId;
    }

    public void setWorkshopId(Long workshopId) {
        this.workshopId = workshopId;
    }

    public String getWorkshopName() {
        return workshopName;
    }

    public void setWorkshopName(String workshopName) {
        this.workshopName = workshopName;
    }

    public Integer getWorkshopProperty() {
        return workshopProperty;
    }

    public void setWorkshopProperty(Integer workshopProperty) {
        this.workshopProperty = workshopProperty;
    }

    public SysDictData getWorkshopPropertyBean() {
        return workshopPropertyBean;
    }

    public void setWorkshopPropertyBean(SysDictData workshopPropertyBean) {
        this.workshopPropertyBean = workshopPropertyBean;
    }

    public Integer getDictCode() {
        return dictCode;
    }

    public void setDictCode(Integer dictCode) {
        this.dictCode = dictCode;
    }

    public SysDictData getDictCodeBean() {
        return dictCodeBean;
    }

    public void setDictCodeBean(SysDictData dictCodeBean) {
        this.dictCodeBean = dictCodeBean;
    }

    public String getWorkshopChandi() {
        return workshopChandi;
    }

    public void setWorkshopChandi(String workshopChandi) {
        this.workshopChandi = workshopChandi;
    }

    public Integer getWorkshopOrder() {
        return workshopOrder;
    }

    public void setWorkshopOrder(Integer workshopOrder) {
        this.workshopOrder = workshopOrder;
    }

    public Integer getWorkshopIsdel() {
        return workshopIsdel;
    }

    public void setWorkshopIsdel(Integer workshopIsdel) {
        this.workshopIsdel = workshopIsdel;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public Date getWorkshopTime() {
        return workshopTime;
    }

    public void setWorkshopTime(Date workshopTime) {
        this.workshopTime = workshopTime;
    }

    @Override
    public String toString() {
        return "PubWorkshop{" +
                "workshopId=" + workshopId +
                ", workshopName='" + workshopName + '\'' +
                ", workshopProperty=" + workshopProperty +
                ", workshopPropertyBean=" + workshopPropertyBean +
                ", dictCode=" + dictCode +
                ", dictCodeBean=" + dictCodeBean +
                ", workshopChandi='" + workshopChandi + '\'' +
                ", workshopOrder=" + workshopOrder +
                ", workshopIsdel=" + workshopIsdel +
                ", userId=" + userId +
                ", sysUser=" + sysUser +
                ", workshopTime=" + workshopTime +
                '}';
    }
}
